package com.shuzhi.dataway.service.impl;

import com.shuzhi.dataway.dao.User;
import com.shuzhi.dataway.dao.UserDao;
import com.shuzhi.dataway.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Siyuan.mlq
 * @version 1.0
 * @description
 * @since 2020/10/26
 */
@Service
public class UserServiceImpl implements UserService {

  @Autowired private UserDao userDao;

  @Override
  public List<User> userList() {
    return userDao.getByAge(20);
//    return null;
  }

  @Override
  public String getName() {
    return "mark";
  }
}
